package com.hoshiicloud.market.service.market;

import com.hoshiicloud.goods.entity.spu.SpuSalesCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * <p>
 * 营销类目 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface SpuSalesCategoryService extends IService<SpuSalesCategory> {

    SpuSalesCategory getById(Long id);

    boolean save(SpuSalesCategory entity);

    boolean updateById(SpuSalesCategory entity);

    IPage<SpuSalesCategory> page(IPage<SpuSalesCategory> page, Wrapper<SpuSalesCategory> queryWrapper);

    boolean deleteById(SpuSalesCategory entity);

    List<SpuSalesCategory> getByIds(List<Long> ids,String key);
}
